<extend name="Base:main" />
<block name="content">
<style>
	.style1{
		width: 100%;
		margin: 0px auto;
		margin-bottom:20px;
		border:1px solid #96C2F1;
		background-color: #EFF7FF;
		padding:1%;
		font-size:14px;
	}
</style>
<div class="tpl-content-wrapper">
            <div class="tpl-content-page-title">
               商家钱包
            </div>
            <ol class="am-breadcrumb">
                <li><a href="#" class="am-icon-home">首页</a></li>
                <li><a href="#">账户管理</a></li>
                <li class="am-active">钱包管理</li>
            </ol>
            <div class="tpl-portlet-components">
                <div class="tpl-block">
                    <div class="am-g">
						<div class="style1">
							本地可用金额：<span style="font-size:18px">{$account.money}</span> &nbsp;&nbsp;&nbsp; | &nbsp;&nbsp;&nbsp;
							提现冻结金额：<span style="font-size:18px">{$account.frozen_money}</span> 
							<a href="{:U('Accunt/localRecharge')}" class="am-btn am-btn-warning external-link" style="margin-left:30px;" title="本地账户充值"><i class="am-icon-plus-square"></i> 充值</a>
							<a href="{:U('Accunt/takeMoney')}" class="am-btn am-btn-warning external-link" style="margin-left:30px;" title="金额提现"><i class="am-icon-plus-square"></i> 提现</a> 
							<a href="{:U('Accunt/takeMoneyList')}" style="width:100px; height:30px; line-height:40px; overflow:hidden; display:inline-block; margin-left:20px;">提现列表</a>
						</div>
                    </div>
                    <div class="am-g">
                        <div class="am-u-sm-12">
                          
                                <table class="am-table am-table-striped am-table-hover table-main">
                                    <thead>
                                        <tr>
                                            <th class="table-check"> <input class="check-all" type="checkbox" value=""></th>
                                            <th>ID</th>
                                            <th>金额</th>
                                            <th>详情</th>
                                            <th>操作时间</th>
                                        </tr>
                                    </thead>
                                    <tbody>
									<empty name="lists">
										<tr>
                                            <td colspan="10" style=" height:60px;line-height:60px; text-align:center">暂无信息</td>
                                        </tr>
									<else />
										<volist name="lists" id="val">
                                        <tr data-id="{$val.id}">
                                            <td><input class="ids" type="checkbox" value="{$val['id']}"></td>
                                            <td>{$val.id}</td>
                                            <td>
                                            <eq name="val.type" value="1"><span style="color:green">+<else/><span style="color:red">-</eq>
                                            {$val.money}
                                            </span>
                                            </td>
                                            <td>
                                            {$val.content}
											</td>
                                            <td>{:date('Y-m-d H:i:s' , $val['create_time'])}</td>
                                        </tr>
										</volist>
									</empty>
                                    </tbody>
                                </table>
                                <div class="am-cf">

                                    <div class="am-fr">
                                        <ul class="am-pagination tpl-pagination">
                                            {$page}
                                        </ul>
                                    </div>
                                </div>
                                <hr>
                        </div>
                    </div>
                </div>
                <div class="tpl-alert"></div>
            </div>

        </div>
    <script>
		$(".check-all").click(function () {
			$(".ids").prop("checked", this.checked);
		});
    </script>
    
</block>